package Client;

import java.io.IOException;
import java.net.Socket;

import core.NativeMethods;


public class ClientSocket implements Runnable{

	Thread t;
	
	public ClientSocket()
	{
		t = new Thread(this, "ClientSocket");
	}
	
	public void start()
	{
		this.t.start();
	}

	@Override
	public void run()
	{
		try
		{			
			Socket s = new Socket("localhost", 3200);
			if(s.isConnected())
			{
				NativeMethods.ShowDialog("Connect to server");
			}
				
		}
		catch(IOException e)
		{
			e.printStackTrace();
		}
	}
}
